/*
 * @Description: 菜单
 * @Author: Boide
 * @Date: 2022-01-27 17:11:14
 * @LastEditors: guiyi@hongyi.tech
 * @LastEditTime: 2022-02-17 11:45:51
 */
import http from '@/utils/request'

// 查询菜单列表
export const menuListPage = (data) => http.postJson('/wx/menu/postCustomMenu', data)

// 编辑菜单
export const editMenu = (data) => http.postJson('/wx/menu/postUpdateWxMenu', data)

// 新增菜单
export const addMenu = (data) => http.postJson('/wx/menu/postAddWxMenu', data)

// 删除菜单
export const deleteMenu = (data) => http.postJson('/wx/menu/postDelWxMenu', data)

// 菜单详情
export const detailMenu = (id) => http.get(`/wx/menu/getDetailMenu/${id}`)

// 发布
export const pushCustomMenu = (data) => http.postJson('/wx/menu/pushCustomMenu', data)

// 取消发布
export const pushCustomMenuCancel = (data) => http.postJson('/wx/menu/pushCustomMenuCancel', data)

// 获取通用信息
export const getMenuComInfo = (data) => http.postJson('/wx/menu/postZoetisParams', data)

// 微信一二级菜单列表
export const getCustomMenuOneAndTow = (id) => http.get(`/wx/menu/getCustomMenuOneAndTow/${id}`)

// 图片、文字消息列表
export const getImageTextList = () => http.get(`/wx/menu/getImageTextList`)

// 微信菜单上移和下移
export const postWxMenuMove = (data) => http.postJson(`/wx/menu/postWxMenuMove`, data)